{include file='material/base/header'}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>审核耗材申领记录</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <!-- Example Events -->
                    <div class="example-wrap">
                        <div class="example">
                            <div class="btn-group" id="exampleTableEventsToolbar" role="group">
                                <button type="button" id="pass" class="btn btn-outline btn-default">
                                    <i class="glyphicon glyphicon-check" aria-hidden="true"></i>
                                    通过
                                </button>
                                <button type="button" id="fail" class="btn btn-outline btn-default">
                                    <i class="fa fa-close" aria-hidden="true"></i>
                                    不通过
                                </button>
                            </div>
                            <table
                                    id="receivelist"
                                    data-height="400"
                                    data-mobile-responsive="true">
                                <thead>
                                <tr>
                                    <th data-field="state" data-checkbox="true"></th>
                                    <th data-field="Id">申请记录编号</th>
                                    <th data-field="material_name">耗材名称</th>
                                    <th data-field="material_model">耗材型号</th>
                                    <th data-field="num">申领数量</th>
                                    <th data-field="user_id">申请人编号</th>
                                    <th data-field="user">申请人</th>
                                    <th data-field="receive_time">申请时间</th>
                                    <th data-field="approval_status" data-formatter="status1">审核状态</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                    <!-- End Example Events -->
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<script>
    function status1(value,row,index) {
        var a = "";
        if(value == "0") {
            var a = '<span style="color:#ffd500">待审中</span>';
        }else if(value == "1"){
            var a = '<span style="color:#1dfc04">审核通过</span>';
        }else if(value == "2") {
            var a = '<span style="color:#FF0000">审核不通过</span>';
        }else if(value == "3") {
            var a = '<span style="color:#7eff00">已领取</span>';
        }
        return a;
    }
</script>
{include file='material/base/footer'}
<script src="__PUBLIC__/home/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="__PUBLIC__/home/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="__PUBLIC__/home/js/layui/layui.all.js"></script>
<!-- Peity -->
<script src="__PUBLIC__/home/js/demo/check_receive.js"></script>

</body>

</html>
